/**
* Copyright 2011 Ivan Kolodyazhny (e0ne)
* All Rights Reserved.
*
*    Licensed under the Apache License, Version 2.0 (the "License"); you may
*    not use this file except in compliance with the License. You may obtain
*    a copy of the License at
*
*         http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
*    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*    License for the specific language governing permissions and limitations
*    under the License.
*/

(function (b) {
    var c = { init: function (a) { function c() { f.each(function () { var a = this; b.get(e.url, function (c) { var d = b(a).children("tbody"); d.html(""); b("#" + e.template).tmpl(c).appendTo(d) }) }) } var e = { template: "ajax_table_template", url: "", interval: 5E3 }; a && b.extend(e, a); var a = b(this), d = a.data("ajaxTable"); d || (b(this).data("ajaxTable", { timers: {} }), d = a.data("ajaxTable")); var f = this; c(); d.timers[this.selector] || (d.timers[this.selector] = window.setInterval(c, e.interval)) }, stop: function () {
        var a = b(this).data("ajaxTable");
        a && (window.clearInterval(a.timers[this.selector]), a.timers[this.selector] = null)
    } 
    }; b.fn.ajaxTable = function (a) { if (c[a]) return c[a].apply(this, Array.prototype.slice.call(arguments, 1)); else if (typeof a === "object" || !a) return c.init.apply(this, arguments); else b.error("Method " + a + " does not exist on jQuery.tooltip") } 
})(jQuery);